using HuiLian.Common.Input;
using HuiLian.Service.Platform.CallTime.Input;
using HuiLian.Common.Output;
using HuiLian.Model.Platform;
using System.Threading.Tasks;

namespace HuiLian.Service.Platform.CallTime
{
    /// <summary>
    /// 调用时间表接口
    /// </summary>
    public interface ICallTimeService
    {
        /// <summary>
        /// 获取调用时间表信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync(long id);

        /// <summary>
        /// 查询调用时间表信息
        /// </summary>
        /// <param name="input">分页信息</param>
        /// <returns></returns>
        Task<IResponseOutput> PageAsync(PageInput<CallTimeEntity> input);

        /// <summary>
        /// 添加调用时间表信息
        /// </summary>
        /// <param name="input">调用时间表信息</param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(CallTimeAddInput input);

        /// <summary>
        /// 更新调用时间表信息
        /// </summary>
        /// <param name="input">调用时间表信息</param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(CallTimeUpdateInput input);

        /// <summary>
        /// 删除调用时间表信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> DeleteAsync(long id);

        /// <summary>
        /// 软删除调用时间表信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);
    }
}
